<template>
  <div>
    <div>
      <van-nav-bar fixed title="城市列表" left-arrow @click-left='$router.go(-1)'/>
    </div>
    <div>
      <van-index-bar>
        <van-index-anchor index="A" />
        <van-cell title="aaaa" />
        <van-cell title="文本" />
        <van-cell title="文本" />

        <van-index-anchor index="B" />
        <van-cell title="文本" />
        <van-cell title="文本" />
        <van-cell title="文本" />
      </van-index-bar>
    </div>
    <van-button type="default" @click="created">默认按钮</van-button>
  </div>
</template>

<script>
import { getCity } from '@/api/article'
export default {
  methods: {
    async created () {
      const res = await getCity({
        level: 1
      })
      console.log(res)
    },
    onClickLeft () {
    }
  }
}
</script>

<style>
.van-index-bar{
  padding-top: 46px;
}
</style>
